package cn.com.surker.base.system.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 工控仓位信息表
 * </p>
 *
 * @author admin
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysControlStorage extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 生产线ID
     */
    @NotNull(message = "请选择生产线")
    private Long lineId;

    /**
     * 仓位名称
     */
    @NotNull(message = "请输入仓位名称")
    private String name;

    /**
     * 仓位类型(0:筒仓1:堆场)
     */
    @NotNull(message = "请选择仓位类型")
    private Integer type;

    /**
     * 仓位材料名称
     */
    private String materialName;

    /**
     * 工控机仓位ID
     */
    private Long controlId;

    /**
     * 中青林工控标识
     */
    @TableField(exist = false)
    private String flag;

    /**
     * 最大仓储量
     */
    @TableField(exist = false)
    private Double maxCapacity;

    /**
     * 工控创建时间
     */
    @TableField(exist = false)
    private String controlCreateTime;

    /**
     * 工控生产线ID
     */
    @TableField(exist = false)
    private Long controlLineId;

}
